package br.com.rfqx.account.repository;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import br.com.rfqx.account.Account;

@Repository
public interface AccountRepository<T extends Account> extends JpaRepository<T, Long> {

	List<T> findByName(String name);
	
	List<T> findByName(String name, Pageable pageable);
	
}
